package day017.homework.p3;

public class Test {
    public static void main(String[] args) {
        Student s1 = new Student();
        try {
            s1.setName("张三");
            s1.setAge(10);
        } catch (AgeException e) {
            System.out.println(e.getMessage());
        }
        try {
            s1.setSex("妖");
        } catch (SexException e) {
            System.out.println(e.getMessage());
        }
    }
}
